package pers.vic.xqd.framerwork;

import pers.vic.xqd.protocol.http.HttpProtocol;

/**
 * 描述:
 * @author Vic.xu
 * @date 2022-02-09 13:58
 */
public class ProtocolFactory {

    public static Protocol getProtocol(){
        String name = System.getProperty("protocolName");
        switch (name) {
            case "http":
                return new HttpProtocol();

            default:
                return new HttpProtocol();
        }
    }
}
